﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Model;
using BLL;
public partial class notice : System.Web.UI.Page
{
    private int PageIndex { get { return (int)ViewState["index"]; } set { ViewState["index"] = value; } }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            checkUser();
        }
    }
    private void checkUser()
    {
        tb_user u = Session[Util.KoInfo.CookieUser] as tb_user;
        if (u == null)
        {
            ltlContent.Text = "<center><h1>请登陆后！！再查看通知</h1></center>";
        }
        else
        {
            Load();
        }
    }
    private void Load()
    {
        int id = int.Parse(Request.QueryString.Get("id"));
        BllNotice bll = new BllNotice();
        var obj = bll.GetSingle(id);
        ltlContent.Text = obj.content;
    }
   
}